package com.example.rss_reder;


public class WeatherList {
	
	private String time;
	private String min;
	private String max;
	private String temp;
	private String weather;
	private String rain;
	
	WeatherList(){
	}
	
	WeatherList(String time, String min, String max, String temp, String weather, String rain){
		this.time = time;
		this.min = min;
		this.max = max;
		this.weather = weather;
		this.rain = rain;
		this.temp = temp;
	}

	public String getTime() {
		int a = Integer.parseInt(time);
		a = a-3;
		String b = a+":00";
		return b;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getMin() {
		String a = null;
		if(min.equals("-999.0")){
			a = "-";
		}else{
			a = min+"℃";
		}
		return a;
	}

	public void setMin(String min) {
		this.min = min;
	}

	public String getMax() {
		String a = null;
		if(max.equals("-999.0")){
			a = "-";
		}else{
			a = max+"℃";
		}
		return a;
	}

	public void setMax(String max) {
		this.max = max;
	}

	public String getWeather() {
		return weather;
	}

	public void setWeather(String weather) {
		this.weather = weather;
	}

	public String getRain() {
		String a = "강수 : "+rain+"%";
		return a;
	}

	public void setRain(String rain) {
		this.rain = rain;
	}

	public String getTemp() {
		return temp+"℃";
	}

	public void setTemp(String temp) {
		this.temp = temp;
	}
	
}
